package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.FCommonProblemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/26.
 */
@SuppressWarnings("serial")
@Service("CommonProblemService")
public class FCommonProblemServiceImpl extends BaseService implements FCommonProblemService {

    @Override
    public void insertCommonProblem(SuperRecordModel SRModel) {
        getSqlSession().insert("FCommonProblemMapper.insertCommonProblem",SRModel);
    }

    @Override
    public void upCommonProblem(SuperRecordModel SRModel) {
        getSqlSession().update("FCommonProblemMapper.upCommonProblem", SRModel);
    }

    @Override
    public List getCommonProblem(SuperRecordModel SRModel) {
        return  getSqlSession().selectList("FCommonProblemMapper.getCommonProblem",SRModel);
    }

    @Override
    public void deleteCommonProblem(SuperRecordModel SRModel) {
        getSqlSession().update("FCommonProblemMapper.deleteCommonProblem",SRModel);
    }
}
